package com.yiwei.hdb.model;


import com.yiwei.hdb.constant.Const;

import java.util.Map;

/**
 * 请求数据模型
 * Created by Master.Dong on 2016/4/11.
 */
public class RequestModel{
	private int mRequestDataType = Const.RequestDataType.AES;
	private int mResponseDataType = Const.ResponseDataType.AES;
	private int mRequestMethod = Const.RequestMethod.GET;

	private Object mData = null;

	private boolean isNeedCache = true;

	public RequestModel(){}

	public RequestModel(Object mData){
		this.mData = mData;
	}

	public RequestModel(Map<String, String> data){
		this.mData = data;
	}

	public Object getmData(){
		return mData;
	}

	public void setmData(Object mData)	{
		this.mData = mData;
	}

	public int getmRequestDataType()
	{
		return mRequestDataType;
	}

	public void setmRequestDataType(int mRequestDataType){
		this.mRequestDataType = mRequestDataType;
	}

	public int getmResponseDataType(){
		return mResponseDataType;
	}

	public void setmResponseDataType(int mResponseDataType){
		this.mResponseDataType = mResponseDataType;
	}

	public int getmRequestMethod() {
		return mRequestMethod;
	}

	public void setmRequestMethod(int mRequestMethod) {
		this.mRequestMethod = mRequestMethod;
	}

	/*public boolean isNeedCache(){
		return isNeedCache;
	}

	public void setNeedCache(boolean isNeedCache)	{
		this.isNeedCache = isNeedCache;
	}*/

}
